<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
<div class="tt"><span class="f_r px11">IP:<?php echo $user['loginip']; ?>&nbsp;&nbsp;</span>欢迎管理员，<?php echo $_username;?></div>
<table cellpadding="2" cellspacing="1" class="tb">
    <tr>
        <td class="tl">管理级别</td>
        <td width="30%">&nbsp;<?php echo $_admin == 1 ? ($CFG['founderid'] == $_userid ? '网站创始人' : '超级管理员') : ($_aid ? '<span class="f_blue">' . $AREA[$_aid]['areaname'] . '站</span>管理员' : '普通管理员'); ?></td>
        <td class="tl">登录次数</td>
        <td width="30%">&nbsp;<?php echo $user['logintimes']; ?> 次</td>
    </tr>
    <tr>
        <td class="tl">站内信件</td>
        <td>&nbsp;<a href="<?php echo $MODULE[2]['linkurl'] . 'message.php';?>" target="_blank">收件箱[<?php echo $_message ? '<strong class="f_red">' . $_message . '</strong>' : $_message;?>]</a></td>
        <td class="tl">登录时间</td>
        <td>&nbsp;<?php echo timetodate($user['logintime'], 5); ?> </td>
    </tr>
    <tr>
        <td class="tl">账户余额</td>
        <td>&nbsp;<?php echo $_money; ?></td>
        <td class="tl">会员<?php echo $DT['credit_name'];?></td>
        <td>&nbsp;<?php echo $_credit; ?> </td>
    </tr>
	<?php if ($_admin == 1) { ?>
    <tr>
        <td class="tl">后台搜索</td>
        <td colspan="2">
            <form action="?">
                <input type="hidden" name="file" value="search"/>
                <input type="text" style="width:98%;color:#444444;" name="kw" value="请输入关键词" onfocus="if(this.value=='请输入关键词')this.value='';"/>
        </td>
        <td>&nbsp;<input type="submit" name="submit" value="搜 索" class="btn"/>
            </form></td>
    </tr>
	<?php } ?>
    <tr>
        <td class="tl">工作便笺</td>
        <td colspan="2">
            <form method="post" action="?">
                <input type="hidden" name="action" value="<?php echo $action;?>"/>
                <textarea name="note" style="width:98%;height:50px;overflow:visible;color:#444444;"><?php echo $note;?></textarea>
        </td>
        <td>&nbsp;<input type="submit" name="submit" value="保 存" class="btn"/>
            </form></td>
    </tr>
</table>
<?php if ($_founder) { ?>

<div class="tt">系统信息</div>
<table cellpadding="2" cellspacing="1" class="tb">
    <tr>
        <td class="tl">服务器时间</td>
        <td>&nbsp;<?php echo timetodate($DT_TIME, 'Y-m-d H:i:s l');?></td>
    </tr>
    <tr>
        <td class="tl">服务器信息</td>
        <td>&nbsp;<?php echo PHP_OS . '&nbsp;' . $_SERVER["SERVER_SOFTWARE"];?> [<?php echo gethostbyname($_SERVER['SERVER_NAME']);?>:<?php echo $_SERVER["SERVER_PORT"];?>] <a href="?action=phpinfo" target="_blank">[详细信息]</a></td>
    </tr>
    <tr>
        <td class="tl">数据库版本</td>
        <td>&nbsp;MySQL <?php echo $db->version();?></td>
    </tr>
    <tr>
        <td class="tl">上次备份</td>
        <td>&nbsp;<a href="?file=database" title="点击备份数据库"><?php echo $backtime;?><?php if ($backdays > 5) { ?> (<span class="f_red"><?php echo $backdays;?></span>天以前)<?php } ?></a></td>
    </tr>
</table>

<?php } ?>
<script type="text/javascript">Menuon(0);</script>
<?php include tpl('footer'); ?>
